import request from '@/config/http.js'

export function channelMenuList(data) {
  return new Promise((resolve, reject) => {
    request({
      url: 'channel/list',
      method: 'get'
    }).then(res => {
      if (res.status === 200) {
        resolve(res.data.data.list || [])
      } else {
        resolve([])
      }
    })
  })
}

export default { channelMenuList }
